﻿using System.Collections.Generic;

namespace Douyu.SDK.Messages
{
    /// <summary>
    /// 斗鱼用户信息
    /// </summary>
    public class dyUserInfo : SafeDictionary
    {
        public dyUserInfo(SafeDictionary info) : base(info.Datas)
        {
        }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int id
        {
            get { return GetValue(nameof(id), 0); }
        }

        /// <summary>
        /// 用户昵称
        /// </summary>
        public string nick
        {
            get { return GetValue(nameof(nick), ""); }
        }

        /// <summary>
        /// 用户ID
        /// </summary>
        public RoomGroupType rg
        {
            get { return GetValue(nameof(id), RoomGroupType.UnKnow); }
        }

        /// <summary>
        /// 酬勤等级
        /// </summary>
        public int cur_lv
        {
            get { return GetValue(nameof(cur_lv), 0); }
        }

        /// <summary>
        /// 酬勤数量
        /// </summary>
        public int cq_cnt
        {
            get { return GetValue(nameof(cq_cnt), 0); }
        }

        /// <summary>
        /// 最高酬勤等级
        /// </summary>
        public int best_dlev
        {
            get { return GetValue(nameof(best_dlev), 0); }
        }

        /// <summary>
        /// 用户等级
        /// </summary>
        public int level
        {
            get { return GetValue(nameof(level), 0); }
        }

        /// <summary>
        /// 礼物头衔
        /// </summary>
        public int gt
        {
            get { return GetValue(nameof(gt), 0); }
        }

    }
}
